<!--{if $TS_SITE[base][isgzip]==1}-->{php ob_start('ob_gzip');}<!--{/if}-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

{$_SESSION[script_login]}
{$_SESSION[script_logout]}

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="all" />
<meta property="qc:admins" content="13502613276100756375" />
<title><!--{if $ac=='index' && $app =='home'}-->{$TS_SITE[base][site_title]} - {$title}<!--{elseif $ac=='topic' && $app =='group'}-->{$title} - {$TS_SITE[base][site_title]}<!--{else}-->{$title} - {$TS_SITE[base][site_title]}<!--{/if}--></title>
<!--{if  $app=='group' && $ac=='index'}-->
<meta name="keywords" content="{$TS_SITE[base][site_key]}" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
<!--{elseif  $app=='group' && $ac=='topic'}-->
<meta name="keywords" content="<!--{loop $strTopic[tags] $key $item}-->{$item[tagname]},<!--{/loop}-->" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
<!--{elseif  $app=='xinkuan'}-->
<meta name="keywords" content="{$TS_SITE[base][site_key]}" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
<!--{else}-->
<meta name="keywords" content="{$TS_SITE[base][site_key]}" /> 
<meta name="description" content="{$TS_SITE[base][site_desc]}" /> 
<!--{/if}-->
<link href="{SITE_URL}images/style.css" rel="stylesheet" type="text/css" />
<!--{if $ac=='space' || $ac=='collect' || $ac=='talk' && $app <>'talk'}-->
<link href="{SITE_URL}images/space.css" rel="stylesheet" type="text/css" />
<!--{/if}-->
<!--{if $ac=='login' || $ac=='register'}-->
<link href="{SITE_URL}images/login.css" rel="stylesheet" type="text/css" />
<!--{/if}-->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<script src="{SITE_URL}images/jquery.js" type="text/javascript"></script>
<!--{if $ac=='topic'}-->
<script type="text/javascript"> 
$(document).ready(function() {
	var maxwidth=670;
	$("img").each(function(){      
		if (this.width>maxwidth) 
		 this.width = maxwidth; 
	}); 
});
</script>
<!--{/if}-->
<!--{if $ac=='login' || $ac=='register'}-->
<!--{else}-->
<script src="{SITE_URL}images/application.js" type="text/javascript"></script>
<script src="{SITE_URL}images/jquery.scrollTo-1.4.0-min.js" type="text/javascript"></script>
<script src="{SITE_URL}images/util.js" type="text/javascript"></script>
<script type="text/javascript" src="{SITE_URL}images/index.js"></script>
<script src="{SITE_URL}public/js/dialog/jquery.artDialog.js?skin=blue" type="text/javascript"></script>
<script src="{SITE_URL}public/js/dialog/artDialog.iframeTools.js" type="text/javascript"></script>
<!--{/if}-->
<!--{if $ac=='topic'}-->
<script src="{SITE_URL}app/{$app}/js/extend.func.js" type="text/javascript"></script>
<script src="{SITE_URL}app/user/js/extend.func.js" type="text/javascript"></script>
<script type="text/javascript" src="{SITE_URL}images/showProduct.js"></script>
<script type="text/javascript" src="{SITE_URL}images/share.js"></script>
<!--{/if}-->
<!--{if $ac=='space'}-->
<script src="{SITE_URL}app/user/js/extend.func.js" type="text/javascript"></script>
<!--{/if}-->
<script>var siteUrl = '{SITE_URL}';</script>
<style>

</style>
</head>
 
<body id="hp">
	<div class="header-top">
	<dl class="nav-new-top wrap fn-clear">
		<dt>欢迎来到{$TS_SITE[base][site_title]}！</dt>
		<dd>
              <!--{if $TS_USER[user] == ''}-->
			  <span>{php doAction('user_login_footer')}</span>
	       		<a href="{SITE_URL}{tsurl('user','login')}" class="J_login">登录</a>
	       		|
	       		<a href="{SITE_URL}{tsurl('user','register')}">注册</a>
				<!--{else}-->
				<a href="{SITE_URL}{tsurl('user','space',array(userid=>$TS_USER[user][userid]))}" style="color:#FF0066; font-weight:bold">{$TS_USER[user][username]}</a>
				|
				<span id="newmsg"><a href="{SITE_URL}{tsurl('message','my')}">消息</a></span>
				|
				<a href="{SITE_URL}{tsurl('user','set',array(ts=>base))}">设置</a>
				|
	       		<a href="{SITE_URL}{tsurl('user','login',array(ts=>out))}">退出</span></a>
<!--{/if}-->
                		</dd>
	</dl>
	<!-- //nav-top -->
</div>
<div class="header-new" id="main">
	<div class="wrap logo">
		<a id="J-heat-tracker" href="{SITE_URL}" title="{$TS_SITE[base][site_title]}" class="img-logo">
			<img src="{SITE_URL}images/logo.gif" alt="{$TS_SITE[base][site_title]}">
		</a>
		<span class="img-slogan" style="padding-top:15px;">
		<form method="GET" action="index.php">
		<input type="hidden" name="app" value="search" />
		<input type="hidden" name="ac" value="s" />
		<input class="search" type="text" autocomplete="off" name="kw" title="" value="" style="color: rgb(212, 212, 212); width: 206px;">
		<input class="btn_search" type="submit" name="button" value="" id="button" >
</form>
</span>
	</div>
	<ul class="ui-nav ui-nav-container wrap">  
	<li class="ui-nav-item <!--{if $app =='home' }-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu" href="{SITE_URL}" title="首页">首页</a>  
	</li>  
	<li class="ui-nav-item  <!--{if $app =='hot' }-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu" href="{SITE_URL}{tsurl('hot')}" title="热门">热门</a>   
	</li> 
	<li class="ui-nav-item  <!--{if $app == 'xin'}-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu"  href="{SITE_URL}{tsurl('xin')}" title="最新">最新</a>  
	</li> 
		<li class="ui-nav-item  <!--{if $app == 'shop'}-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu"  href="{SITE_URL}{tsurl('shop')}" title="秀店">秀店</a>  
	</li> 
	<li class="ui-nav-item <!--{if $app == 'talk'}-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu" href="{SITE_URL}{tsurl('talk')}" title="说说">说说</a>  
	</li>  
	
	<li class="ui-nav-item  <!--{if $app =='tag' }-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu" href="{SITE_URL}{tsurl('tag')}" title="分类">分类</a>  
	</li>  
	 <!--{if $TS_USER[user] <> ''}-->
		<li class="ui-nav-item  ui-nav-item-last  <!--{if $app =='user'  && $TS_USER[user][userid] == $userid }-->ui-nav-item-current<!--{/if}-->">  
		<a class="m-menu" href="{SITE_URL}{tsurl('user','space',array(userid=>$TS_USER[user][userid]))}" title="分享..." seed="jfb-link-navi-myJiFen">分享...</a>  
	</li>
	<!--{else}-->
	<li class="ui-nav-item">  
		<a class="m-menu" href="{SITE_URL}{tsurl('user','login')}" title="分享..." seed="jfb-link-navi-myJiFen">分享...</a>  
	</li>
	<!--{/if}-->
</ul>
</div>